//
//  ListDetailViewController.h
//  CheckList
//
//  Created by chen on 15/8/5.
//  Copyright (c) 2015年 ZhangXM. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ListDetailViewController;
@class Checklist;
@protocol ListDetailViewControllerDelegate <NSObject>

- (void) listDetailViewControllerDidCancel:(ListDetailViewController *)controller;
- (void) listDetailViewController:(ListDetailViewController *)controller didFinshAddingChecklist:(Checklist *)checklist;
- (void) listDetailViewController:(ListDetailViewController *)controller didFinshEditingChecklist:(Checklist *)checklist;

@end
@interface ListDetailViewController : UITableViewController<UITextFieldDelegate>
@property (nonatomic,weak)IBOutlet UITextField *textField;
@property (nonatomic,weak)IBOutlet UIBarButtonItem *doneBarButton;
@property (nonatomic,weak)id<ListDetailViewControllerDelegate>delegate;

@property (nonatomic,strong)Checklist *checklistToEdit;
- (IBAction)cancel:(UIBarButtonItem *)sender;
- (IBAction)done:(UIBarButtonItem *)sender;

//- (IBAction)cancel:(id)sender;
//- (IBAction)done:(id)sender;

@end
